//
//  KRSportTrack.h
//  KRSport
//
//  Created by KaoRny on 17/4/22.
//  Copyright © 2017年 KaoRny. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MAMapKit/MAMapKit.h>
#import "KRSportPolyLine.h"

typedef enum : NSUInteger {
    KRSportTypeRunning,
    KRSportTypeRiding,
    KRSportTypeWalking,
} KRSportType; //运动类型

typedef enum : NSUInteger {
    KRSportStateContinue,
    KRSportStatePause,
    KRSportStateFinish,
} KRSportState; //运动状态


//运动轨迹模型  记录运动轨迹相关的数据(轨迹折线,轨迹颜色,轨迹距离..)
@interface KRSportTrack : NSObject
//起点大头针模型
@property (nonatomic, strong, readonly) MAPointAnnotation *startAnnotation;
//运动类型
@property (nonatomic, assign, readonly) KRSportType sportType;
//运动类型的图片名
@property (nonatomic, copy, readonly) NSString *sportTypeImageName;
//运动状态
@property (nonatomic, assign) KRSportState  sportState;

- (instancetype)initWithSportType:(KRSportType)sportType withSportState:(KRSportState)sportState;
/**
 添加折线
 
 @param coordinate 折线起点坐标
 @param destCoordinate 折线终点坐标
 @return 折线模型
 */
//- (MAPolyline *)addPolyklineWithSourceCoordinate:(CLLocationCoordinate2D)sourceCoordinate andDestCoordinate:(CLLocationCoordinate2D)destCoordinate;

- (MAPolyline *)addPolyklineWithDest:(CLLocation *)dest;

@end
